
from selenium import webdriver
import time

driver = webdriver.Chrome()

driver.get('https://www.baidu.com/')

cookies = driver.get_cookies()

for cookie in cookies:
    print(cookie)

print("="*30)
print(driver.get_cookie('BD_HOME'))

driver.delete_cookie('BD_HOME')
print("="*30)
print(driver.get_cookie('BD_HOME'))

